<?php
/**
 * Nordic Repository
 * 
 * LICENSE
 * 
 * The new BSD license is applied on this source-file. For further
 * information please visit http://license.nordic-dev.de/newbsd.txt
 * or send an email to andre.moelle@gmail.com.
 */

/**
 * Methods that must be implemented in filter-classes.
 * 
 * @category   Nordic
 * @package    Nordic_Upload
 * @copyright  2007 Nordic Development
 * @license    http://license.nordic-dev.de/newbsd.txt (New-BSD license)
 * @author     Andre Moelle <andre.moelle@gmail.com>
 * @version    $Id: Interface.php 3 2007-07-08 09:21:42Z andre.moelle $
 */
interface Nordic_Upload_Filter_Interface
{
	/**
	 * Constructor sets the source-file to a variable.
	 * 
	 * @param String $source path to source-file
	 * @return void
	 */
	public function __construct ($source);
	
	/**
	 * Returns the extension of files applying to this filter.
	 * 
	 * @param void
	 * @return String
	 */
	public function getExtension ();
	
	/**
	 * Processes the source-file.
	 * 
	 * Result is a boolean which implies whether the source-file
	 * is valid for the specified file-type.
	 * 
	 * @param void
	 * @return Boolean
	 */
	public function process ();
}
?>